﻿namespace RtsTest.Game
{
    using GameKits.Unity.Rts;
    using GameKits.Unity.Rts.UnitComponents;

    public class TankUnit : UnitBase
    {
        public override void InitializeUnit()
        {
            var selfComp = this.AddComponent<SelfHealth>();
            selfComp.HealthIncrement = 0.01f;
            selfComp.IsEnabled = true;

            var lightComp = this.AddComponent<PointLight>();
            lightComp.LightRange = 20;
            lightComp.ShowLight = true;
            lightComp.IsEnabled = true;

            this.IsEnabled = true;
            this.Healt = .1f;
        }
    }
}
